package com.salary.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.salary.entity.BasicSalary;

@Repository
public interface BasicSalaryRepository extends PagingAndSortingRepository<BasicSalary, Long>, JpaSpecificationExecutor<BasicSalary> {
	@Query(value="from BasicSalary b where b.staff.id = ?1")
	public BasicSalary findByStaff(Long staffId);
}
